import { request } from "@/utils";

//获取矿山列表
export function getMineListApi(data) {
    return request({
        url: "/abp/ycusetokenrecord/GetListPage",
        method: "POST",
        data: data
    })
}


//添加矿山
export function addMineApi(data) {
    return request({
        url: "/api/mine/add",
        method: "POST",
        data: data
    })
}

//获取需要修改的矿山
export function GetMineinfo(id) {
    return request({
        url: `/api/mine/info?id=${id}`,
        method: "GET"
    })
}

//修改矿山
export function MineEdit(data) {
    return request({
        url: "/api/mine/edit",
        method: "POST",
        data:data
    })
}


//删除矿山
export function MineDel(id){
    return request({
        url: `/api/mine/del?id=${id}`,
        method: "DELETE"
    })
}